package com.sxjh.entity.result;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class DailyReportResult {


    @ApiModelProperty("客户名称")
    private String companyName;

    @ApiModelProperty("物料名称")
    private String productName;

    @ApiModelProperty("车数")
    private BigDecimal carNumber;

    @ApiModelProperty("吨数")
    private BigDecimal tonnes;
    @ApiModelProperty("原发")
    private BigDecimal netWeight;
    @ApiModelProperty("净重")
    private BigDecimal originalWeight;
    @ApiModelProperty("仓库名称")
    private String wareHouseName;

    public BigDecimal getNetWeight() {
        if ("".equals(netWeight) || netWeight == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return netWeight;
    }

    public BigDecimal getOriginalWeight() {
        if ("".equals(originalWeight) || originalWeight == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return originalWeight;
    }

    public BigDecimal getCarNumber() {
        if ("".equals(carNumber) || carNumber == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return carNumber;
    }

    public BigDecimal getTonnes() {
        if ("".equals(tonnes) || tonnes == null) {
            return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
        }
        return tonnes;
    }
}
